<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'css/fun/header.css' %}">
</head>
<body>
<div class="left">
    <a class="d" href="{% url 'homepage' %}">首页</a>
    <a class="e" href="{% url 'main' %}">全部记录</a>
</div>
<div class="right">
    {% if username %}
        <a class="c" href="{% url 'userdetail_put' %}">{{ username|capfirst }}</a>
        <a class="creat" href="{% url 'logout' %}">退出登录</a>
        <a class="a" href="{% url 'Publish' %}">发布</a>
        <a class="b" href="{% url 'RecordUser' %}">我的记录</a>
    {% else %}
        <a class="func" href="{% url 'login' %}">登录</a>
    {% endif %}
</div>
</body>
</html>